//
//  GlossaryViewController.m
//  JiuLe
//
//  Created by 黄鑫 on 16/10/8.
//  Copyright © 2016年 Fine. All rights reserved.
//

#import "GlossaryViewController.h"

@interface GlossaryViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webViewMain;

@end

@implementation GlossaryViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = self.strTitle;
    [self showNavgationWithLeftItemWithTitle:@"返回"];
    if ([self.strTitle isEqualToString:@"计步"]) {
        [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/jibu.htm"]]];
    }else if ([self.strTitle isEqualToString:@"心率"]) {
        [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/xinlv.htm"]]];
    }else if ([self.strTitle isEqualToString:@"呼吸频率"]) {
        [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/huxi.htm"]]];
    }else if ([self.strTitle isEqualToString:@"睡眠"]) {
        [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/sleep.htm"]]];
    }else if ([self.strTitle isEqualToString:@"血氧"]) {
        [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/xieyang.htm"]]];
    }else if ([self.strTitle isEqualToString:@"体表温度"]) {
        [_webViewMain loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.jiuletech.com:8088/wendu.htm"]]];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
